<template>
  <div>
    <i class="icon iconfont icon-saoyisao" @click="gotoQrPage()"></i>

  </div>
</template>

<script>
import Vue from 'vue'

export default {
  name: 'QrScan',
  data:function () {
    return {
      isShowShade:false,
      callback:null
    }
  },
  methods: {
    gotoQrPage:function () {
      let $this=this
      $this.$confirm('您是否允许调用您的摄像头，进行【扫码】操作?', '系统提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        $this.$router.push('QrPage')
      }).catch(() => {
        // $this.$router.back()
      })
    }
  }
}
</script>

<style scoped>

</style>
